<template>
  <div class="house">
    <div class="houseimg">
      <img :src="'http://liufusong.top:8080'+this.item.houseImg" alt="加载失败" />
    </div>
    <div class="houseinfo">
      <span class="title">{{ item.title }}</span>
      <span class="desc">{{ item.desc }}</span>
      <div>
        <span class="tags" v-for="(tagtem, index) in item.tags" :key="index">
          {{ tagtem }}
        </span>
      </div>
      <div class="unit">
        <span class="price">{{ item.price }}</span>
        <span>元/月</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    item: {
      type: Object,
      default: () => ({})
    }
  },
  data () {
    return {
      loading: false,
      finished: false
    }
  },
  methods: {
    onLoad () {}
  }
}
</script>

<style lang="less" scoped>
.house {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  .houseimg {
    width: 106px;
    height: 80px;
    img {
      width: 100%;
    }
  }
  .houseinfo {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding-left: 12px;
    height: 90px;
    flex: 1;
    .title {
      font-size: 15px;
      font-weight: 700;
      color: #394043;
    }
    .desc {
      font-size: 12px;
      color: #afb2b3;
    }
    .tags {
      display: inline-block;
      padding: 4px 5px;
      margin-right: 5px;
      font-size: 12px;
      border-radius: 3px;
      line-height: 12px;
      color: #39becd;
      background-color: #e1f5f8;
    }
    .unit {
      font-size: 12px;
      color: #fa5741;
      .price {
        font-size: 16px;
        font-weight: bolder;
      }
    }
  }
}
</style>
